import axios from "./request";
import { IErrorData, ISuccessPageData } from "./returnData";

type IDashBoardObj = { src: string }[];

// 获取首页轮播图
export function getDashBoard(): Promise<ISuccessPageData<IDashBoardObj> | IErrorData> {
    return axios.get("/api/dashboard");
}